{{csrf_field()}}
<input type="hidden" name="id" id="id" value="{{$id??0}}">

<div class="layui-form-item">
    <div class="layui-inline">
        <label class="layui-form-label">设备编号</label>
        <div class="layui-input-inline" >
            <input type="text" name="device_no" id="device_no" value="{{$device->device_no??old('device_no')}}" placeholder="设备编号" class="layui-input" lay-verify="required" />
        </div>
    </div>
</div>

<div class="layui-form-item">
    <div class="layui-inline">
        <label class="layui-form-label">机器厂家</label>
        <div class="layui-input-block">
            <select name="factory_id" lay-filter="factory_id" lay-verify="factory_id"  lay-search="">
                @foreach ($factory as $key => $value)
                <option value="{{$value['id']}}">{{$value['name']}}</option>
                @endforeach
            </select>
        </div>
    </div>
</div>

<div class="layui-form-item">
    <div class="layui-inline">
        <label class="layui-form-label">设备型号</label>
        <div class="layui-input-inline" >
            <input type="text" name="device_model" id="device_model" value="{{$device->device_model??old('device_model')}}"  placeholder="设备型号" class="layui-input" lay-verify="required"/>
        </div>
    </div>
</div>


<div class="layui-form-item">
    <div class="layui-inline">
        <label class="layui-form-label">物联网卡号</label>
        <div class="layui-input-inline" >
            <input type="text" name="iccid" value="{{$device->iccid??old('iccid')}}" placeholder="物联网卡号"  class="layui-input" lay-verify="required">
        </div>
        
    </div>
</div>

<div class="layui-form-item">
    <div class="layui-inline">
        <label class="layui-form-label">模组编号</label>
        <div class="layui-input-inline" >
            <input type="text" name="cpuid" id="cpuid" value="{{$device->cpuid??old('cpuid')}}" placeholder="模组编号"  class="layui-input" lay-verify="required"/>
        </div>
    </div>
</div>

<div class="layui-form-item">
    <div class="layui-inline">
        <label class="layui-form-label">内核版本号</label>
        <div class="layui-input-inline" >
            <input type="text" name="version" id="version" value="{{$device->version??old('version')}}" placeholder="内核版本号"  class="layui-input" lay-verify="required"/>
        </div>
    </div>
</div>



<div class="layui-form-item layui-layout-admin">
    <div class="layui-input-block">
        <button type="submit" class="layui-btn" lay-submit="" lay-filter="formDemo">确 认</button>
    </div>
</div>
